
package com.companymodule.bean;

import java.util.List;

import com.companymodule.dao.TbCompanyTypeDAO;
import com.creditratingmodule.bean.TbCreditRating;
import com.creditratingmodule.dao.TbCreditRatingDAO;

public class TbCompany implements java.io.Serializable {

    private int companyId;

    private String companyCode;

    private String companyTypeId;
    
    private List<TbCompanyType> tbCompanyTypeList;

    private String companyName;

    private String companyAddress;

    private String companyContactList;

    private String companyMobile;

    private String companyCreateTime;

    private String companyManScale;

    private int creditRatingId;
    
    private TbCreditRating tbCreditRating;

    private String companyMemo;

    private String bankName;

    private String bankUser;

    private String bankCard;

    private String createTime;

    public int getCompanyId(){
        return companyId;
    }

    public void setCompanyId(int companyId){
        this.companyId = companyId;
    }

    public String getCompanyCode(){
        return companyCode;
    }

    public void setCompanyCode(String companyCode){
        this.companyCode = companyCode;
    }

    public String getCompanyTypeId(){
        return companyTypeId;
    }

    public void setCompanyTypeId(String companyTypeId){
        this.companyTypeId = companyTypeId;
        this.tbCompanyTypeList=new TbCompanyTypeDAO().getTbCompanyTypeListByCompanyTypeId(companyTypeId);
    }
    
    public List<TbCompanyType> getTbCompanyTypeList() {
		return tbCompanyTypeList;
	}

	public String getCompanyName(){
        return companyName;
    }

    public void setCompanyName(String companyName){
        this.companyName = companyName;
    }

    public String getCompanyAddress(){
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress){
        this.companyAddress = companyAddress;
    }

    public String getCompanyContactList(){
        return companyContactList;
    }

    public void setCompanyContactList(String companyContactList){
        this.companyContactList = companyContactList;
    }

    public String getCompanyMobile(){
        return companyMobile;
    }

    public void setCompanyMobile(String companyMobile){
        this.companyMobile = companyMobile;
    }

    public String getCompanyCreateTime(){
        return companyCreateTime;
    }

    public void setCompanyCreateTime(String companyCreateTime){
        this.companyCreateTime = companyCreateTime;
    }
    
    public String getCompanyManScale() {
		return companyManScale;
	}

	public void setCompanyManScale(String companyManScale) {
		this.companyManScale = companyManScale;
	}

	public int getCreditRatingId(){
        return creditRatingId;
    }

    public void setCreditRatingId(int creditRatingId){
        this.creditRatingId = creditRatingId;
        this.tbCreditRating=new TbCreditRatingDAO().getTbCreditRatingByCreditRatingId(creditRatingId);
    }
    
    public TbCreditRating getTbCreditRating() {
		return tbCreditRating;
	}

	public String getCompanyMemo(){
        return companyMemo;
    }

    public void setCompanyMemo(String companyMemo){
        this.companyMemo = companyMemo;
    }

    public String getBankName(){
        return bankName;
    }

    public void setBankName(String bankName){
        this.bankName = bankName;
    }

    public String getBankUser(){
        return bankUser;
    }

    public void setBankUser(String bankUser){
        this.bankUser = bankUser;
    }

    public String getBankCard(){
        return bankCard;
    }

    public void setBankCard(String bankCard){
        this.bankCard = bankCard;
    }

    public String getCreateTime(){
        return createTime;
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }
    public TbCompany(){
    }
    public TbCompany(String companyCode,String companyTypeId,String companyName,String companyAddress,String companyContactList,String companyMobile,String companyCreateTime,int creditRatingId,String companyMemo,String bankName,String bankUser,String bankCard,String companyManScale){
        this.companyCode = companyCode;
        this.companyTypeId = companyTypeId;
        this.companyName = companyName;
        this.companyAddress = companyAddress;
        this.companyContactList = companyContactList;
        this.companyMobile = companyMobile;
        this.companyCreateTime = companyCreateTime;
        this.creditRatingId = creditRatingId;
        this.companyMemo = companyMemo;
        this.bankName = bankName;
        this.bankUser = bankUser;
        this.bankCard = bankCard;
        this.companyManScale=companyManScale;
    }
    public TbCompany(int companyId,String companyCode,String companyTypeId,String companyName,String companyAddress,String companyContactList,String companyMobile,String companyCreateTime,int creditRatingId,String companyMemo,String bankName,String bankUser,String bankCard,String companyManScale){
        this.companyId = companyId;
        this.companyCode = companyCode;
        this.companyTypeId = companyTypeId;
        this.companyName = companyName;
        this.companyAddress = companyAddress;
        this.companyContactList = companyContactList;
        this.companyMobile = companyMobile;
        this.companyCreateTime = companyCreateTime;
        this.creditRatingId = creditRatingId;
        this.companyMemo = companyMemo;
        this.bankName = bankName;
        this.bankUser = bankUser;
        this.bankCard = bankCard;
        this.companyManScale=companyManScale;
    }
}

